package com.hh.eduservice.controller;

import com.hh.commonutils.Result;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/eduservice/service")
public class indexController {

    @PostMapping("/login")
    public Result login(){
        return Result.success().data("token","I'm Token!");
    }

    @GetMapping("/info")
    public Result info(){
        return Result.success().data("roles","admin").data("name","ZhangSan").data("avatar","https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fhbimg.b0.upaiyun.com%2F0f6cceb25745355d681316b7dec7a24617fc26e928b0b-rvZbZT_fw658&refer=http%3A%2F%2Fhbimg.b0.upaiyun.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1635521759&t=4fa98e03ef80763c29a610ebc05c57bb");
    }
}
